{% set product = hookable_metadata.context.product %}

{% if product.images|length > 1 %}
    <div class="col-12 col-sm-3 mb-3">
        <div class="d-flex flex-column gap-3 gap-xxl-4" {{ sylius_test_html_attribute('thumbnails') }}>
            {% for image in product.images %}
                {% set path = image.path is not null ? image.path|imagine_filter('sylius_shop_product_small_thumbnail') : asset('bundles/syliusui/images/200x200.png') %}
                <div>
                    {% hook 'thumbnails' with {image, path} %}
                </div>
            {% endfor %}
        </div>
    </div>
{% endif %}
